<template>
  <div>
    <el-dialog
      title="视频展示"
      width="50%"
      :visible.sync="helpDialogVisible"
      class="showDialogClass"
      :before-close="handleClose"
      append-to-body
    >
      <h1>{{ textTitle }}演示视频</h1>
      <p>标签:{{ textLabel }}</p>
      <p>简介:{{ description }}</p>
      <video
        :src="videoSrc"
        controls=""
      />
      <span
        slot="footer"
        class="dialog-footer"
      >
        <el-button @click="helpDialogVisible = false"> 取消 </el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
  export default {
    name: `helpTextSearchDialog`,
    data () {
      return {
        helpDialogVisible: false,
        videoSrc: ``,
        textTitle: ``,
        textLabel: ``,
        description: ``,
      }
    },
    methods: {
      inits (item) {
        this.helpDialogVisible = true;
        this.videoSrc = item.textVideo
        this.textLabel = item.textLabel
        this.textTitle = item.textTitle
        this.description = item.description;
      },
      handleClose () {
        this.cancel()
      },
      cancel () {
        this.helpDialogVisible = false
      },
    },
  }
</script>

<style>

</style>
